package backend;


public enum InputTypes {
	N(new Position(0,-1)),
	S(new Position(0,1)),
	W(new Position(-1,0)),
	E(new Position(1,0));

	private Position direction;

	private InputTypes(Position p){
	this.direction=p;
	}

	public Position getDirection(){
	return direction;
	}

	public int x(){
	return direction.getX();
	}

	public int y(){
	return direction.getY();
	}

	public InputTypes oposite() {
		
		switch(this){
		
		case N: return S;
		case S: return N;
		case W: return E;
		case E: return W;
		
		
		}
		return null;
		
		
	}


	
}
